package ee.fujitsu.exception;

/**
 * The Class ServiceException.
 *
 * @author Andrei
 */

public class ServiceException extends Exception {

   /** The Constant serialVersionUID. */
   private static final long serialVersionUID = 4698333438500042014L;

   /** The code. */
   private int code;
   
   /** The message. */
   private String message;

   /**
    * Instantiates a new service exception.
    *
    * @param code the code
    * @param message the message
    */
   public ServiceException(int code, String message) {
      
      this.code = code;
      this.message = message;
   }

   /**
    * Gets the code.
    *
    * @return the code
    */
   public int getCode() {
      return code;
   }

   /* (non-Javadoc)
    * @see java.lang.Throwable#getMessage()
    */
   public String getMessage() {
      return message;
   }

}
